package com.synergy.stockflow.procure.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "inbound_details")
public class InboundDetails {
    /**
     * 入库详情编码
     */
    @TableId(value = "inbound_details_id", type = IdType.ASSIGN_ID)
    @Schema(description="入库详情编码")
    private String inboundDetailsId;

    /**
     * 验收编码
     */
    @TableField(value = "inbound_details_arrival_id")
    @Schema(description="验收编码")
    private String inboundDetailsArrivalId;

    /**
     * 采购详情编码
     */
    @TableField(value = "inbound_details_purchase_details_id")
    @Schema(description="采购详情编码")
    private String inboundDetailsPurchaseDetailsId;

    /**
     * 到货数量
     */
    @TableField(value = "inbound_details_quantity_of_arrival")
    @Schema(description="到货数量")
    private BigDecimal inboundDetailsQuantityOfArrival;

    /**
     * 不合格数量
     */
    @TableField(value = "inbound_details_unqualified")
    @Schema(description="不合格数量")
    private BigDecimal inboundDetailsUnqualified;

    /**
     * 入库数量
     */
    @TableField(value = "inbound_details_inbound_quantity")
    @Schema(description="入库数量")
    private BigDecimal inboundDetailsInboundQuantity;

    @TableField(exist = false)
    @Schema(description="入库总量")
    private BigDecimal zong;

    @TableField(exist = false)
    @Schema(description="采购详情")
    private PurchaseDetails purchaseDetails;
}